package com.five.community.service;
import com.five.community.bean.Car;
import com.five.community.bean.vo.CarVo;

import java.util.List;

public interface CarService {

    List<CarVo> selectAllCar() throws Exception;

    void insert(Car car) throws Exception;

    void deleteById(long id) throws Exception;

    List<CarVo> selectByName(String name) throws Exception;

    Car selectById(long id) throws Exception;

    void update(Car car) throws Exception;

    List<CarVo> selectAllCars(Integer pageNum, Integer pageSize) throws Exception;

    List<CarVo> selectAllByName(Integer pageNum, Integer pageSize, String name) throws Exception;
}
